  <?php
    if(!$this->session->userdata('logged_in')) {
        redirect('logout');
    } else if($this->session->userdata('role') !== 'admin') {
        redirect('forbidden');
    }
?>
<div id="register_stud_page">
    <div id="upload_file_wrapper">
        <p class="p_user_heading">Upload CSV File</p><br/><br/>
        <?php echo form_open_multipart('user/upload/', array('id'=>'user_form'));?>
            <input type="file" name="userfile" id="user_upload_file" /><br/>
            <label for="note" class="input_label">Note: The format of the CSV file should be
              <br/> ID_Number , First_Name , Middle_Name , Last_Name , Email_Address , Course/Department</label><br/>
            <input name="student" type="submit" value="Upload as Student" id="btn_cancel" />
            <input name="employee" type="submit" value="Upload as Employee" id="btn_cancel" />
        <?php echo form_close() ?>
    </div>
</div>